package com.guomao.demoe;

public class TicketDemo {

    public static void main(String[] args) {

//        TicketSeller ts = new TicketSeller();
        AtomicTicketSeller ts = new AtomicTicketSeller();
        Thread t1 = new Thread(ts, "1号售票窗口");
        Thread t2 = new Thread(ts, "2号售票窗口");
        Thread t3 = new Thread(ts, "3号售票窗口");

        t1.start();
        t2.start();
        t3.start();
    }
}
